package org.act.xservices.rt.xcontainer.parser.wsdl;

import java.io.File;
import java.io.IOException;

public abstract class AWSDL11Parser extends AWSDLParser{

	
    protected String wsdlBaseDocumentURI = null;
	
	

	public AWSDL11Parser(File wsdlFile) {
		super(wsdlFile);

		try {
			this.wsdlBaseDocumentURI = 
				wsdlFile.getCanonicalFile().toURI().toString();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	
    /**
     * Sets the URI to the base document associated with the WSDL definition.
     * This identifies the origin of the Definition and allows the
     * Definition to be reloaded.  Note that this is the URI of the base
     * document, not the imports.
     *
     * @param baseUri
     */
    public void setDocumentBaseUri(String baseUri) {
        this.wsdlBaseDocumentURI = baseUri;
    }

    /**
     * Gets the URI to the base document associated with the WSDL definition.
     * This identifies the origin of the Definition and allows the
     * Definition to be reloaded.  Note that this is the URI of the base
     * document, not the imports.
     *
     */
    public String getDocumentBaseUri() {
        return wsdlBaseDocumentURI;
    }
}
